package request

import uuid "github.com/satori/go.uuid"

/**
* @Author : zhoujin
* @Date : 2020/6/9 3:13 下午
 */
//用户注册
type RegisterStruct struct {
	Username  string `json:"username"`
	Password  string `json:"password"`
	NickName  string `json:"nick_name"`
	HeaderImg  string `json:"header_img" gorm:default:'http://www.henrongyi.top/avatar/lufu.jpg'`
	AuthorityId  string `json:"authority_id" gorm:"default:888"`
}

// 用户注册登录
type RegisterAndLoginStruct struct {
	Username  string `json:"username"`
	Password  string `json:"password"`
	Captcha   string `json:"captcha"`
	CaptchaId  string `json:"captcha_id"`
}
//modify  password
type ChangePasswordStruct struct {
	UserName string `json:"user_name"`
	Password string `json:"password"`
	NewPassworc string `json:"new_passworc"`
}


//modify User auth 
type SetUserAuth struct {
	UUID  uuid.UUID `json:"uuid"`
	AuthorityId  string `json:"authority_id"`
} 